import axios from "@/axios"

export function login(username, password) {
    return axios.post("/employee/login", {username, password})
}

export function getAdminInfo() {
    return axios.get("/admin_service/admin/detail")
}

export function updateAdminPassword(data) {
    return axios.put("/admin_service/admin/updatePassword", data)
}

export function getCodeApi(){
    return axios.get("/admin_service/admin/code")
}